
package org.bridgen.lang.semantics.ast;
import java.util.*;



public class Import extends Element implements Cloneable {
    public void flushCache() {
        super.flushCache();
    }
     @SuppressWarnings({"unchecked", "cast"})  public Import clone() throws CloneNotSupportedException {
        Import node = (Import)super.clone();
        node.in$Circle(false);
        node.is$Final(false);
    return node;
    }
     @SuppressWarnings({"unchecked", "cast"})  public Import copy() {
      try {
          Import node = (Import)clone();
          if(children != null) node.children = (ASTNode[])children.clone();
          return node;
      } catch (CloneNotSupportedException e) {
      }
      System.err.println("Error: Could not clone node of type " + getClass().getName() + "!");
      return null;
    }
     @SuppressWarnings({"unchecked", "cast"})  public Import fullCopy() {
        Import res = (Import)copy();
        for(int i = 0; i < getNumChildNoTransform(); i++) {
          ASTNode node = getChildNoTransform(i);
          if(node != null) node = node.fullCopy();
          res.setChild(node, i);
        }
        return res;
    }
    // Declared in PrettyPrint.jrag at line 369

    
    public void pp(StringBuffer buf) {
    	buf.append(indent() + "import " + getName() + ";\n");
    }

    // Declared in bridgit.ast at line 3
    // Declared in bridgit.ast line 18

    public Import() {
        super();


    }

    // Declared in bridgit.ast at line 10


    // Declared in bridgit.ast line 18
    public Import(String p0) {
        setName(p0);
    }

    // Declared in bridgit.ast at line 14


  protected int numChildren() {
    return 0;
  }

    // Declared in bridgit.ast at line 17

  public boolean mayHaveRewrite() { return false; }

    // Declared in bridgit.ast at line 2
    // Declared in bridgit.ast line 18
    protected String tokenString_Name;

    // Declared in bridgit.ast at line 3

    public void setName(String value) {
        tokenString_Name = value;
    }

    // Declared in bridgit.ast at line 6

    public String getName() {
        return tokenString_Name != null ? tokenString_Name : "";
    }

    // Declared in Compilation.jrag at line 46
 @SuppressWarnings({"unchecked", "cast"})     public boolean isImportElement() {
        boolean isImportElement_value = isImportElement_compute();
        return isImportElement_value;
    }

    private boolean isImportElement_compute() {  return true;  }

public ASTNode rewriteTo() {
    return super.rewriteTo();
}

}
